package com.jeomo.masterdata.starter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jeomo.base.starter.annocations.Keyword;
import com.jeomo.base.starter.entity.BaseEntity;

/**
 * 商戶
 *
 * @Author: qbt
 * @Date: 2020/3/1 1:16
 * @Version 1.0
 */
@TableName("master_merchant")
public class Merchant extends BaseEntity {
    private static final long serialVersionUID = 4317126784389577471L;
    /**
     * 商户号
     */
    @TableId(value = "code", type = IdType.INPUT)
    private String code;
    /**
     * 商户名
     */
    @Keyword
    private String name;
    /**
     * 组织号
     */
    private String orgCode;
    /**
     * 品牌号
     */
    private String brandCode;
    /**
     * 品牌号
     */
    @TableField(exist = false)
    @Keyword
    private String brandName;
    /**
     * 业态号
     */
    private String tobCode;
    @TableField(exist = false)
    @Keyword
    private String tobName;

    /**
     * 启用标识
     */
    private Boolean startFlag = true;
    /**
     * 顶级组织码
     */
    private String topOrgCode;

    public String getTopOrgCode() {
        return topOrgCode;
    }

    public void setTopOrgCode(String topOrgCode) {
        this.topOrgCode = topOrgCode;
    }

    public Boolean getStartFlag() {
        return startFlag;
    }

    public void setStartFlag(Boolean startFlag) {
        this.startFlag = startFlag;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getBrandCode() {
        return brandCode;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getTobName() {
        return tobName;
    }

    public void setTobName(String tobName) {
        this.tobName = tobName;
    }

    public void setBrandCode(String brandCode) {
        this.brandCode = brandCode;
    }

    public String getTobCode() {
        return tobCode;
    }

    public void setTobCode(String tobCode) {
        this.tobCode = tobCode;
    }
}
